// This file is executed from npm script with project root as cwd.
import fs from 'node:fs'

// 这个是我们在tsconfig.types.json设置的输出目录
fs.rmSync('dist/types', { recursive: true }) 

// 这个操作是把js-tool.d.ts 换成 index.d.ts 便于package.json通用设置
fs.renameSync('dist/loading.d.ts', 'dist/index.d.ts')
